//
// Created by world on 23-11-14.
//

#include "C4_4_3.h"

C4_4_3::C4_4_3() : phone_book{
        {"张三", 123},
        {"李四", 124},
        {"王五", 125},
} {}

int C4_4_3::get_number(const std::string &s) {
    return phone_book[s];
}

void C4_4_3::set_number(const std::string &s, int n) {
    phone_book[s] = n;
}